<script type="text/javascript">
editSuccessUrl = './templates/admin_theme_list.htm';
var editUrl = "./templates/admin_module_list.htm";

//objTable.debug = true;
objTable.setURL("./admin_theme.asp");
objTable.dateVal = "action=";
objTable.action = "<a href='javascript:vod();' onclick='editTheme($ID);'>"+editStr+"</a>&nbsp;<a href='javascript:vod();' onclick='edit($ID,editUrl);'>"+managerModule+"</a>&nbsp;<a href='javascript:vod();' onclick='setDefaultTheme($ID);'>"+defaultTheme+"</a>";
objTable.noneValue = "<br /><br />"+listEmpty+"<br /><br /><br />";
objTable.doResponseOther = "sw_help_topic_init()";

//objForm.debug = true;
objForm.formName = "form2"
objForm.postUrl = "./admin_theme.asp";
objForm.doResponseOther = "initTabContent();objForm.formName = 'form2';";

function initTabContent(){
	setTabTitle(currentTab, tabTitle[200]);

	objTable.start();

	objForm.doResponseMethod = getAddPostResult;
}

function setDefaultTheme(id){
	ajaxPostDate("./admin_theme.asp","action=default&ID=" + id, initTabContent);
}

function editTheme (id) {
	objForm.doResponseMethod = getEditPostResult;

	//FormEdit.debug = true;
	FormEdit.postUrl = "./admin_theme.asp";
	FormEdit.formName = "form2";
	FormEdit.dateVal = "action=add&ID=" + id;
	FormEdit.start();
}
</script>

<div class="mainWindows">
	<div>
		<fieldset><legend><span id="help_topic_icon" onclick="sw_help_topic();"><span id="Language_OperationNotice"></span></span></legend>
        <div id="help_topic"><span id="Language_Theme_Info"></span></div>
        </fieldset>
	</div>

	<form id="form1" name="form1" method="get" onsubmit="return false;">
	
	<div style="margin: 5px 5px 0 0; width: 63%;" class="left">
		<table width="100%" id="listTable">
		  <tr>
			<th style="width: 5px;"><input name="chkall" type="checkbox" value="on" onclick="CheckAll(document.form1,this);"></th>
			<th>ID</th>
			<th><span id="Language_Theme_Name"></span></th>
			<th><span id="Language_Theme_Default"></span></th>
			<th><span id="Language_Comm_Bar_Operation"></span></th>
		  </tr>
		</table>
		<div style="BACKGROUND: #efefef;height:25px;">
			<div id="opBar" style="float: left;width:50%;">&nbsp;<input type="button" id="Comm_Del_Operation" onclick="javascript:del('./admin_theme.asp', 'form1');"></div>
		</div>
	</div>

	</form>

	<div style="margin: 5px; width: 35%;" class="left">
		<form id="form2" name="form2" method="get" onsubmit="return false;">

		<input type="hidden" name="">
		<input type="hidden" name="ID">
		<input type="hidden" name="action" value="save">

		<fieldset><legend><span id="Language_Theme_Edit"></span></legend>
			<table width="100%" id="edittable">
			  <tr>
				<td width="80" align="right"><span id="Language_Theme_Name1"></span>:</td>
				<td><input type="text" name="title" dataType="Require" /></td>
			  </tr>
			  <tr>
				<td align="right"><span id="Language_Theme_Default1"></span>:</td>
				<td><span id="Language_Comm_Yes"></span>
				  <input type="radio" name="isdefault" value="1">
				  <span id="Language_Comm_No"></span>
				  <input type="radio" name="isdefault" value="0" dataType="Group"></td>
			  </tr>
			  <tr bgcolor="efefef">
			  <td align="left" colspan="4" height="25">&nbsp;<input type="button" name="btnSubmit" id="btnSubmit" onclick="javascript:return objForm.ajaxPost();">&nbsp;<input type="button" name="btnReset" id="btnReset" onclick="$('form2').reset();"></td>
			</tr>
			</table>
		</fieldset>

		</form>
	</div>
</div>
